package com.liu.proxyUse;

public class ProxyImpl implements Proxy{
    private Person person;

    public void setPerson(Person person) {
        this.person = person;
    }

    public void add() {
        log("add");
        person.add();
    }

    void log(String logms){
        System.out.println("日志 执行了" + logms);
    }
}
